package com.example.demo;

import java.lang.reflect.Field;
import java.lang.reflect.Method;

public class ReflectDemo {
    public static void main(String[] args) throws ClassNotFoundException {
        Class app = Class.forName("com.example.demo.App");
        System.out.println(app.getName());
        Field[] fields = app.getDeclaredFields();
        System.out.println(fields);
        Method[] methods = app.getDeclaredMethods();
        System.out.println(methods);

    }
}
